package com.cupk;

import java.sql.SQLOutput;
import java.util.Scanner;

public class pingfanggen {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个整数");
        int number = sc.nextInt();
        for (int i = 1; i <=number ; i++) {
            if (i*i==number){
                System.out.println(i+"就是"+number+"的整数部分");
                break;
            }else if (i*i>number){
                System.out.println((i-1)+"就是"+number+"平方根的整数部分");
                break;
            }

        }
    }

}
